
export default [
    {
        //主页
        path: '/',
        name: '主页',
        redirect: "/dashboard/dashboard",//重定向
        //懒加载
        component: () => import("@/views/Index.vue"),
        children: [
            {
                path: '/store/list/creatProduct',
                name: 'creatProduct',
                component: () => import("@/views/store/creatProduct.vue")
            }
        ]
    },
    {
        path: "/login",
        component: () => import("@/views/Login.vue")
    },
    {
        path: '/error',
        component: () => import('@/views/404.vue')
    },
    {
        path: '*',
        redirect: "/error"
    }
]